<?php

use yii\grid\GridView;
use yii\widgets\ActiveForm;
use \app\models\Supplier;
use \yii\helpers\Html;
?>

<div class="alert alert-primary" role="alert">
    共计 <?= Yii::$app->request->get('total') ?> 条数据，选择你要导出的字段
</div>

<?php
$form = ActiveForm::begin([
    'id' => 'export-form',
    'method' => 'get',
    'action' => \yii\helpers\Url::to(['do-export',
        'id' => Yii::$app->request->get('id'),
        'name' => Yii::$app->request->get('name'),
        'code' => Yii::$app->request->get('code'),
        't_status' => Yii::$app->request->get('t_status'),
        'total' => Yii::$app->request->get('total'),
    ]),
    'options' => [
        'class' => 'row'
    ],
]);


$supplierModel = new Supplier();


echo Html::checkboxList('columns', ['id', 'name', 'code', 't_status'], [
    'id' => '主键Id',
    'name' => '名称Name',
    'code' => '代码Code',
    't_status' => '状态Status'
], [
    'class' => 'form-group col-md-12',
    'itemOptions' => [
        'labelOptions' => [
            'class' => 'form-control',
        ],
    ],
]);
?>

<div class="col-md-12">
<?= Html::submitButton('确认', ['class' => 'btn btn-primary', 'id'=>'export-confirm', 'name' => 'search-button'])?>
</div>

<?php ActiveForm::end() ?>